<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

          <!-- Sidebar Menu -->
          <ul class="sidebar-menu">
            <li class="header">HEADER</li>
<c:forEach var="item" items="${_menu}">
    <c:if test="${item.type == 1}">
        <li <c:if test="${item.link.active}">class="active"</c:if>><a href="/${item.link.cont}/${item.link.meth}"><i class="fa fa-${item.link.icon}"></i> <span>${item.link.text}</span></a></li>
    </c:if>
    <c:if test="${item.type == 2}">
        <li class="treeview">
          <a href="javascript:void(0);"><i class="fa fa-${item.list.icon}"></i> <span>${item.list.text}</span> <i class="fa fa-angle-left pull-right"></i></a>
          <ul class="treeview-menu">
            <c:forEach var="link" items="${item.list.list}">
            <li <c:if test="${link.active}">class="active"</c:if>><a href="/${link.cont}/${link.meth}"><i class="fa fa-${link.icon}"></i> <span>${link.text}</span></a></li>
            </c:forEach>
          </ul>
        </li>
    </c:if>
</c:forEach>
          </ul><!-- /.sidebar-menu -->
